<table class="tablelist">
    	<thead>
    	<tr>
        <th>用户ID<i class="sort"><img src="__VIEW__/images/px.gif" /></i></th>
        <th>用户名</th>
        <th>性别</th>
        <th>余额</th>
        <th>最后登陆时间</th>
        <th>最后登陆IP</th>
        <th>注册时间</th>
        <th>状态</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach from="$users" key="$key" value="$val">
        <tr>
        <td>{$val.uid}</td>
        <td><a href="">{$val.username}</a></td>
        <td>{$val.sex}</td>
        <td>{$val.user_money}</td>
        <td>{$val.last_login_time|date:'Y-m-d H:i:s',@@}</td>
        <td>{$val.last_login_ip}</td>
        <td>{$val.reg_time||date:'Y-m-d H:i:s',@@}</td>
        <td><if value="$val.is_lock==1">锁定<else/>正常</if></td>
        <td><a href="{|U:'ReceivAddr/receivAddr',array('uid'=>$val['uid'],'username'=>$val['username'])}">收货地址</a>
        	<if value="$val.is_lock==0"><a href="{|U:'User/userLock',array('uid'=>$val['uid'],'lock'=>1)}" class="tablelink">锁定</a>
        		<else/><a href="__CONTROLLER__/userLock/uid/{$val.uid}/lock/0" class="tablelink">解锁</a></if> 
        		<a href="{|U:'User/delUser',array('uid'=>$val['uid'])}" class="tablelink">删除</a> 
        		<a href="{|U:'User/editUser',array('uid'=>$val['uid'])}" class="tablelink">修改</a></td>
        </tr>
        </foreach>
        
         
        </tbody>
    </table>